using bookmeetingroom.Data.Entities;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace bookmeetingroom.Data.Entities
{
    public class Company: EntityBase
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public Guid Id { get; set; }

        [StringLength(100)]
        [Display(Name = "公司名字")]
        [Required(ErrorMessage = "公司名字不能为空")]
        public string Name{ get; set; }

        [StringLength(200)]
        public string LogoUrl { get; set; }

        [StringLength(200)]
        [Display(Name = "通知")]
        public string Notice { get; set; }
 

        [Display(Name = "电话号码")]
        [StringLength(100)]
        public string Tel { get; set; }

        [Display(Name = "邮编")]
        [StringLength(100)]
        public string PostCode { get; set; }


        public List<ApplicationUser> Users { get; set; } = new List<ApplicationUser>();

   


    }
}